package xin.yangshuai.basic01.sse;

import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

/**
 * SseEmitterService
 *
 * @author shuai
 * @date 2023/7/27
 */
public interface SseEmitterService {

    SseEmitter create(String clientId);

    void close(String clientId);

    void sendMsgToClient(String clientId, String message);

    void sendMsgToAll(String message);
}
